#!/bin/env python

# Lucid is Copyright (C) 2006 by Infiscape
#
# Original Author: Allen Bierbaum
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

import sys
from PyQt4 import QtCore, QtGui

class Ui_MainWindow(object):
   def setupUi(self, MainWindow):
      MainWindow.setObjectName("MainWindow")
      MainWindow.resize(QtCore.QSize(QtCore.QRect(0,0,800,600).size()).expandedTo(MainWindow.minimumSizeHint()))

      self.centralwidget = QtGui.QWidget(MainWindow)
      self.centralwidget.setObjectName("centralwidget")

      self.vboxlayout = QtGui.QVBoxLayout(self.centralwidget)
      self.vboxlayout.setMargin(9)
      self.vboxlayout.setSpacing(6)
      self.vboxlayout.setObjectName("vboxlayout")
      MainWindow.setCentralWidget(self.centralwidget)

      self.menubar = QtGui.QMenuBar(MainWindow)
      self.menubar.setGeometry(QtCore.QRect(0,0,800,29))
      self.menubar.setObjectName("menubar")

      self.mMenuWindow = QtGui.QMenu(self.menubar)
      self.mMenuWindow.setObjectName("mMenuWindow")

      self.mMenuFile = QtGui.QMenu(self.menubar)
      self.mMenuFile.setObjectName("mMenuFile")
      MainWindow.setMenuBar(self.menubar)

      self.statusbar = QtGui.QStatusBar(MainWindow)
      self.statusbar.setObjectName("statusbar")
      MainWindow.setStatusBar(self.statusbar)

      self.toolBar = QtGui.QToolBar(MainWindow)
      self.toolBar.setOrientation(QtCore.Qt.Horizontal)
      self.toolBar.setObjectName("toolBar")
      MainWindow.addToolBar(self.toolBar)

      self.toolBar_2 = QtGui.QToolBar(MainWindow)
      self.toolBar_2.setOrientation(QtCore.Qt.Horizontal)
      self.toolBar_2.setObjectName("toolBar_2")
      MainWindow.addToolBar(self.toolBar_2)

      self.actionNew = QtGui.QAction(MainWindow)
      self.actionNew.setIcon(QtGui.QIcon(":/icons/data/icons/document-new_32.png"))
      self.actionNew.setObjectName("actionNew")

      self.actionOpen = QtGui.QAction(MainWindow)
      self.actionOpen.setIcon(QtGui.QIcon(":/icons/data/icons/document-open_32.png"))
      self.actionOpen.setObjectName("actionOpen")

      self.actionSave = QtGui.QAction(MainWindow)
      self.actionSave.setIcon(QtGui.QIcon(":/icons/data/icons/document-save_32.png"))
      self.actionSave.setObjectName("actionSave")

      self.actionSave_As = QtGui.QAction(MainWindow)
      self.actionSave_As.setIcon(QtGui.QIcon(":/icons/data/icons/document-save-as_32.png"))
      self.actionSave_As.setObjectName("actionSave_As")

      self.actionClose = QtGui.QAction(MainWindow)
      self.actionClose.setIcon(QtGui.QIcon(":/icons/data/icons/emblem-unreadable_32.png"))
      self.actionClose.setObjectName("actionClose")

      self.actionQuit = QtGui.QAction(MainWindow)
      self.actionQuit.setObjectName("actionQuit")

      self.actionNewViewDock = QtGui.QAction(MainWindow)
      self.actionNewViewDock.setObjectName("actionNewViewDock")

      self.actionReloadPlugins = QtGui.QAction(MainWindow)
      self.actionReloadPlugins.setIcon(QtGui.QIcon(":/icons/data/icons/view-refresh_32.png"))
      self.actionReloadPlugins.setObjectName("actionReloadPlugins")

      self.actionLightDecoration = QtGui.QAction(MainWindow)
      self.actionLightDecoration.setCheckable(True)
      self.actionLightDecoration.setObjectName("actionLightDecoration")

      self.actionShowAll = QtGui.QAction(MainWindow)
      self.actionShowAll.setObjectName("actionShowAll")

      self.actionToggleHeadlight = QtGui.QAction(MainWindow)
      self.actionToggleHeadlight.setCheckable(True)
      self.actionToggleHeadlight.setChecked(True)
      self.actionToggleHeadlight.setObjectName("actionToggleHeadlight")
      self.mMenuWindow.addAction(self.actionNewViewDock)
      self.mMenuFile.addAction(self.actionNew)
      self.mMenuFile.addAction(self.actionOpen)
      self.mMenuFile.addSeparator()
      self.mMenuFile.addAction(self.actionSave)
      self.mMenuFile.addAction(self.actionSave_As)
      self.mMenuFile.addAction(self.actionClose)
      self.mMenuFile.addSeparator()
      self.mMenuFile.addAction(self.actionReloadPlugins)
      self.mMenuFile.addSeparator()
      self.mMenuFile.addAction(self.actionQuit)
      self.mMenuFile.addSeparator()
      self.menubar.addAction(self.mMenuFile.menuAction())
      self.menubar.addAction(self.mMenuWindow.menuAction())
      self.toolBar.addAction(self.actionNew)
      self.toolBar.addSeparator()
      self.toolBar.addAction(self.actionOpen)
      self.toolBar.addSeparator()
      self.toolBar.addAction(self.actionSave)
      self.toolBar.addAction(self.actionSave_As)
      self.toolBar.addAction(self.actionClose)
      self.toolBar_2.addAction(self.actionLightDecoration)
      self.toolBar_2.addAction(self.actionShowAll)
      self.toolBar_2.addAction(self.actionToggleHeadlight)

      self.retranslateUi(MainWindow)
      QtCore.QMetaObject.connectSlotsByName(MainWindow)

   def retranslateUi(self, MainWindow):
      MainWindow.setWindowTitle(QtGui.QApplication.translate("MainWindow", "MainWindow", None, QtGui.QApplication.UnicodeUTF8))
      self.mMenuWindow.setTitle(QtGui.QApplication.translate("MainWindow", "Window", None, QtGui.QApplication.UnicodeUTF8))
      self.mMenuFile.setTitle(QtGui.QApplication.translate("MainWindow", "File", None, QtGui.QApplication.UnicodeUTF8))
      self.actionNew.setText(QtGui.QApplication.translate("MainWindow", "New", None, QtGui.QApplication.UnicodeUTF8))
      self.actionOpen.setText(QtGui.QApplication.translate("MainWindow", "Open...", None, QtGui.QApplication.UnicodeUTF8))
      self.actionSave.setText(QtGui.QApplication.translate("MainWindow", "Save", None, QtGui.QApplication.UnicodeUTF8))
      self.actionSave_As.setText(QtGui.QApplication.translate("MainWindow", "Save As...", None, QtGui.QApplication.UnicodeUTF8))
      self.actionClose.setText(QtGui.QApplication.translate("MainWindow", "Close", None, QtGui.QApplication.UnicodeUTF8))
      self.actionQuit.setText(QtGui.QApplication.translate("MainWindow", "Quit", None, QtGui.QApplication.UnicodeUTF8))
      self.actionNewViewDock.setText(QtGui.QApplication.translate("MainWindow", "New view dock", None, QtGui.QApplication.UnicodeUTF8))
      self.actionReloadPlugins.setText(QtGui.QApplication.translate("MainWindow", "Reload Plugins", None, QtGui.QApplication.UnicodeUTF8))
      self.actionLightDecoration.setText(QtGui.QApplication.translate("MainWindow", "Light Decor", None, QtGui.QApplication.UnicodeUTF8))
      self.actionShowAll.setText(QtGui.QApplication.translate("MainWindow", "ShowAll", None, QtGui.QApplication.UnicodeUTF8))
      self.actionToggleHeadlight.setText(QtGui.QApplication.translate("MainWindow", "Headlight", None, QtGui.QApplication.UnicodeUTF8))


if __name__ == "__main__":
   app = QtGui.QApplication(sys.argv)
   MainWindow = QtGui.QMainWindow()
   ui = Ui_MainWindow()
   ui.setupUi(MainWindow)
   MainWindow.show()
   sys.exit(app.exec_())
